﻿using System.Windows;
using System.Windows.Controls;

namespace Auktionshuset.UserControls
{
    public partial class AuctionListView
    {
        public UIElementCollection Items { get; private set; }

        public bool Loading
        {
            get
            {
                return LoaderGrid.IsVisible;
            }
            set
            {
                LoaderGrid.Visibility = (value) ? Visibility.Visible : Visibility.Hidden;
            }
        }

        public AuctionListView()
        {
            InitializeComponent();

            Items = Container.Children;
        }
    }
}
